#-----------------------------------------------------------------------------
# Name:        globals.py
# Purpose:     
#
# Author:      wbauer
#
# Created:     2004/03/11
# RCS-ID:      $Id: globals.py $
# Copyright:   (c) 2004
# Licence:     LGPL
#-----------------------------------------------------------------------------

from wxPython.wx import *
from wxPython.xrc import *
import sys

# Global constants

sysFont = wxSystemSettings_GetFont(wxSYS_SYSTEM_FONT)
labelFont = wxFont(sysFont.GetPointSize(), wxDEFAULT, wxNORMAL, wxBOLD)
modernFont = wxFont(sysFont.GetPointSize(), wxMODERN, wxNORMAL, wxNORMAL)
smallerFont = wxFont(sysFont.GetPointSize()-2, wxDEFAULT, wxNORMAL, wxNORMAL)

progname = 'XTRed'
version = '0.1'

try:
    True
except NameError:
    True = 1==1
    False = 1==0

# Global variables

class Globals:
    panel = None
    tree = None
    frame = None
    tools = None
    undoMan = None
    currentXXX = None
    currentEncoding = sys.getdefaultencoding() # wxLocale_GetSystemEncodingName()
    unit = 'cm'


g = Globals()
